//
//  ByNetUserApi.h
//  beibei_ios
//
//  Created by hebidu on 16/4/15.
//  Copyright © 2016年 hebidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ByNetBaseApi.h"
#import "ByNetUserModel.h"

#define user_log_debug 1

#if user_log_debug == 1
#define UserLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define UserLog(...)
#endif

/** 用户相关接口 */ /** 朱凯 982942570@qq.com */
@interface ByNetUserApi : ByNetBaseApi

#pragma mark - 用户相关
/** 登陆 */
+ (void)login:(ByNetParamsModel *)model
      success:(void(^)(ByNetBaseResult *result))success 
      failure:(void(^)(ByNetBaseResult *result))failure;

/** 注册 */
+ (void)reigster:(ByNetParamsModel *)model
         success:(void(^)(ByNetBaseResult *result))success
         failure:(void(^)(ByNetBaseResult *result))failure;

/** 用户更新 */
+ (void)updateUserInfo:(ByNetParamsModel *)model
               success:(void(^)(ByNetBaseResult *result))success
               failure:(void(^)(ByNetBaseResult *result))failure;

/** 头像上传 */
+ (void)iconUpload:(UIImage *)icon
           success:(void(^)(ByNetBaseResult *result))success
           failure:(void(^)(ByNetBaseResult *result))failure;

/** 认证图片上传 */
+ (void)authenticationUpload:(UIImage *)icon
                     success:(void(^)(ByNetBaseResult *result))success
                     failure:(void(^)(ByNetBaseResult *result))failure;


//
///** 用手机找回密码 */
//+ (void)retrievePwd:(ByNetUserModel *)model
//            success:(void(^)(ByNetBaseResult *result))success
//            failure:(void(^)(ByNetBaseResult *result))failure;
//
///** 修改密码 */
//+ (void)modifyPwd:(ByNetUserModel *)model
//          success:(void(^)(ByNetBaseResult *result))success
//          failure:(void(^)(ByNetBaseResult *result))failure;
//
///** 新手机绑定 */
//+ (void)bindMobile:(ByNetUserModel *)model
//           success:(void(^)(ByNetBaseResult *result))success
//           failure:(void(^)(ByNetBaseResult *result))failure;
//
//
///** 更换手机绑定 */
//+ (void)changeBindMobile:(ByNetUserModel *)model
//                 success:(void(^)(ByNetBaseResult *result))success
//                 failure:(void(^)(ByNetBaseResult *result))failure;
//
///** 手机验证登录 */
//+ (void)loginByMobile:(ByNetUserModel *)model
//              success:(void(^)(ByNetBaseResult *result))success
//              failure:(void(^)(ByNetBaseResult *result))failure;
//








@end
